@charset "utf-8";
@import "reset";
@import "common";

//新闻动态
.news_h {
    color: #ff6b08;
    font-size: 30px;
    line-height: 1;
    margin: 43px 0 40px 0;
}
.news {
    .picbox {
        width:30%;
        height: 18%;
        margin-right: 5%;
        position: relative;
        box-sizing:border-box; 
        padding: 0;
        &:nth-of-type(3){
            margin-right:0 ;
        }
        img {
            width: 100%;
        }
    }
}
#carousel-example-generic {
    display: none;
}


//案例
.cases {
    padding: 48px 0 72px 0;
    border-bottom: 1px dashed #d4d4d4;
    .active {
        .case_h {
            color: #ff6900;
        }
        button {
            color: white;
            background-color: #ff6900;
            &:active {
                opacity: 0.8;
            }
            &:hover {
                
            }
        }
    }
}
.case {
    display: block;
    padding-top: 40px;
    color: #2a2a2a;
    label {
        display: none;
    }
    .case_h {
        font-size: 18px;
        line-height: 1;
        max-height: 36px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        a {
            color: inherit;
            &:hover {
                font-weight: bold;
            }
        }
    }
    span {
        font-size: 14px;
        line-height: 44px;
    }
    p {
        font-size: 14px;
        line-height: 27px;
        max-height: 79px;
        margin-bottom: 13px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .button {
        display: block;
        text-align: right;
    }
    button {
        height: 32px;
        line-height: 32px;
        color: #ff6900;
        border:1px solid #ff6900;
        border-radius: 16px;
        background-color: #fff;
        padding: 0 22px;
        cursor: pointer;
        &:hover {
            background-color: #ff6900;
            color: white;
        }
        &:active {
            opacity: 0.8;
        }
    }
    img {
        width: 100%;
    }
    
}

//分页器
.pagechange {
    nav {
        text-align: center;
    }
}


//适配768px屏幕
@media (max-width:767px){
    //新闻部分
    .news .row {
        display: none;
    }
    .news_h {
        margin: 20px 0;
        font-size: 20px;
    }
    //轮播
    #carousel-example-generic {
        margin: 0 -15px;
        display: block;
    }
    .carousel-caption {
        bottom: 0;
        left: 0;
        right: 0px;
        padding-top: 3px;
        padding-bottom: 3px;
        background-color: rgba(0,0,0,.7);
        max-height: 42px;
        line-height: 1;
        overflow: hidden;
    }
    .carousel-inner > .item img {
        width: 100%;
    }
    
    //案例部分
    .cases {
        padding: 10px 0;
    }
    .case {
        position: relative;
        &:active {
            background-color: #bfbfbf;
        }
        label{
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            margin-top: -40px;
        }
        .case_h {
            margin-top: 15px;
            a:hover {
                font-weight: normal;
            }
        }
        button {
            display: none;
        }
    }
    //分页器
    .pagechange {
        li{
            &:first-of-type {
                display: none;
            }
        }
    }
}